create Result Provider
Creates a result provider that will return values of the given type from a config. This provider will inspect the registered config matching to the scope provided, utilizing the fallback instead if a valid scope isn't provided.
For an overview of scope, see the translation wiki page.
You can also supply args via the scope string by appending them with a ?
like mod_id.config_id.settingName?arg?arg2
. See the wiki for details on how this is or can be utilized.
Results are cached per scope provided. The cache is cleared automatically at the end of data pack reload.
Return
ResultProvider to supply results based on passed scopes. This should be created once per use-case (static, companion object, etc), otherwise caching won't be effective.
Author
fzzyhmstrs
Since
0.5.3
Parameters
non-null provider type. Needs to be a type that can actually be provided by a config
Creates a result provider that will return values of the given type from a config. This provider will inspect the registered config matching to the scope provided, utilizing the fallback instead if a valid scope isn't provided.
For an overview of scope, see the translation wiki page.
You can also supply args via the scope string by appending them with a ?
like mod_id.config_id.settingName?arg?arg2
. See the wiki for details on how this is or can be utilized.
Results are cached per scope provided. The cache is cleared automatically at the end of data pack reload.
Return
ResultProvider to supply results based on passed scopes. This should be created once per use-case (static, companion object, etc), otherwise caching won't be effective.
Author
fzzyhmstrs
Since
0.5.3
Parameters
non-null provider type. Needs to be a type that can actually be provided by a config
ResultProviderSupplier - a custom creator of Suppliers for creating scoped results.